<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/4/30
  Time: 10:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加学生</title>
</head>
<body>
<h3>添加学生</h3>
<form action="addstu?method=addGoods" method="post">
    <table>
        <tr>
            <td>姓名：</td>
            <td>
                <input type="text" name="stuname">
            </td>
        </tr>
        <tr>
            <td>学号：</td>
            <td>
                <input type="text" name="stuno">
            </td>
        </tr>
        <tr>
            <td>密码：</td>
            <td>
                <input type="password" name="pwd">
            </td>
        </tr>
        <tr>
            <td>身份证号：</td>
            <td>
                <input type="text" name="idcard">
            </td>
        </tr>
        <tr>
            <td>入学时间</td>
            <td>
                <input type="date" name="startdate">
            </td>
        </tr>
        <tr>
            <td>权限：</td>
            <td>
                <input type="checkbox" name="status" value="0" checked="checked">学生
                <input type="checkbox" name="status" value="1">管理员
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" value="保存">
            </td>
        </tr>
    </table>
</form>
<c:if test="${addSuccess}">
    <h1>添加成功！</h1>
    <h1>${"<a href=/selectstuservlet>查询页面</a>"}</h1>
</c:if>
</body>
</html>
